#ifndef LOGGERWIDGET_HEADER_VIZMF_PROJECT
#define LOGGERWIDGET_HEADER_VIZMF_PROJECT

#include <QTextBrowser>
#include "src/core/logger/loggerrecord.h"

class LoggerWidget : public QTextBrowser
{
Q_OBJECT
public:
  explicit LoggerWidget(QWidget *parent = 0);
  void initText();
  void addRecord(const LoggerRecord& record);
  void changePriority(const LoggerRecord::RecordPriority prior, const std::vector<LoggerRecord>& records);
  void setPriority(const LoggerRecord::RecordPriority prior) { priority = prior; }
  bool isEmpty() { return empty; }
private:
  bool rowType;
  QString text;
  LoggerRecord::RecordPriority priority;
  bool empty;
};

#endif // LOGGERWIDGET_HEADER_VIZMF_PROJECT
